/*
    Lowest Common Multiple
    By DreamVB
*/
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int n1,n2,lcm;

    printf("Enter first positive integer: ");
    scanf("%d",&n1);
    printf("Enter second positive integer: ");
    scanf("%d",&n2);

    if(n1 > n2){
        lcm = n1;
    }else{
        lcm = n2;
    }

    while(1){
        if(lcm % n1 == 0 && lcm % n2 == 0){
            break;
        }
        lcm++;
    }

    printf("\nLowest Common Multiple of %d and %d is %d\n",n1,n2,lcm);

    return 0;
}
